# @File ：main.py
# -*- ecoding: utf-8 -*-
# @Time: 2021/8/21 13:59
# @Author: wangyang
from HeroFactory import HeroFactory

#实例化timo和jinx英雄，然后调用timo的战斗方法
hero_factory = HeroFactory()
timo = hero_factory.create_hero('Timo')
jinx = hero_factory.create_hero('Jinx')
timo.fight(jinx.hero_name,jinx.hero_hp,jinx.hero_power)